<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新物资信息页面</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<div th:replace="~{commons/commons::Topbar}"></div>

<div class="container-fluid">
    <div class="row">
        <!--侧边栏-->
        <div th:replace="~{commons/commons::Sidebar(active='purchaseList.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

            <form class="form-horizontal" th:action="@{/updatePur}" method="post">
                <input type="hidden" th:value="${purchase.getId()}" name="id">
                <div class="form-group">
                    <label>采购负责人员工ID号</label>
                    <input th:value="${purchase.getEid()}" type="text" name="eid" class="form-control" placeholder="采购负责人员工ID号" >
                </div>
                <div class="form-group">
                    <label>负责人所属部门号</label>
                    <input th:value="${purchase.getDepartment().getId()}" type="text" name="did" class="form-control" placeholder="默认已经是当前负责人的所属部门号，请勿更改" >
                </div>
                <div class="form-group">
                    <label>采购信息</label>
                    <input th:value="${purchase.getPurchase_info()}" type="text" name="purchase_info" class="form-control" placeholder="采购信息">
                </div>
                <div class="form-group">
                    <label>采购物资总价格</label>
                    <input th:value="${purchase.getPrice()}" type="text" name="price" class="form-control" placeholder="采购总价格" >
                </div>
                <div class="form-group">
                    <label>采购日期</label>
                    <input th:value="${#dates.format(purchase.getPurchase_time(),'yyyy-MM-dd')}" type="date" name="purchase_time" class="form-control" placeholder="yyyy-MM-dd" >
                </div>
                <div class="form-group">
                    <label>备注</label>
                    <input th:value="${purchase.getRemark()}" type="text" name="remark" class="form-control" placeholder="备注" >
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">修改</button>
                </div>
            </form>

        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="/static/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="asserts/js/popper.min.js"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js"></script>



</body>

</html>
</title>
</head>
<body>

</body>
</html>